<template>
    <div>
        <el-alert title="查看客户所属销售" type="info" show-icon> </el-alert>
        <el-divider></el-divider>
        <el-table
            :data="usersSubsidiary"
            border
            style="width: 100%"
            :header-cell-style="{ textAlign: 'center' }"
            :cell-style="{ textAlign: 'center' }"
        >
            <el-table-column prop="account" label="账号"> </el-table-column>
            <el-table-column prop="usersName" label="姓名"> </el-table-column>
            <el-table-column prop="usersPhone" label="联系方式">
            </el-table-column>
            <el-table-column prop="salespersonsId.salesName" label="所属销售员">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
let { mapActions, mapState } = createNamespacedHelpers("adminsUsers");
export default {
    mounted() {
        this.getUsersSubsidiary();
    },
    computed: {
        //adminData
        ...mapState(["usersSubsidiary"]),
    },
    methods: {
        ...mapActions(["getUsersSubsidiary"]),
    },
};
</script>

<style>
</style>